package com.cookor.poi.modules.cms.dao;

import com.cookor.poi.common.persistence.annotation.MyBatisDao;
import com.cookor.poi.modules.cms.entity.CmsSurveryOption;
import com.cookor.poi.modules.cms.entity.CmsSurveryOptionExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@MyBatisDao
public interface CmsSurveryOptionDao {
    long countByExample(CmsSurveryOptionExample example);

    int deleteByExample(CmsSurveryOptionExample example);

    int deleteByPrimaryKey(String id);

    int insert(CmsSurveryOption record);

    int insertSelective(CmsSurveryOption record);

    List<CmsSurveryOption> selectByExample(CmsSurveryOptionExample example);

    CmsSurveryOption selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") CmsSurveryOption record, @Param("example") CmsSurveryOptionExample example);

    int updateByExample(@Param("record") CmsSurveryOption record, @Param("example") CmsSurveryOptionExample example);

    int updateByPrimaryKeySelective(CmsSurveryOption record);

    int updateByPrimaryKey(CmsSurveryOption record);

    List<CmsSurveryOption> findByQuestionId(@Param("qusetionId")Integer qusetionId);

    void deleteByQuestionId(String qusetionId);
}